#include <iostream>

class Test
{
public:
    Test()
    {
        std::cout<<"构造函数\n";
    }
    ~Test()
    {
        std::cout<<"析构函数\n";
    }

};

int main()
{
    Test * t = new Test[3];
    delete []t;

    // std::cout<<"----------\n";
    // Test * t1 = (Test*)malloc(sizeof(Test));
    // free(t1);
    return 0;
}